import request from '@/utils/request'

// 查询用户课程列表
export function listUser_curriculum(query) {
  return request({
    url: '/auto/user_curriculum/list',
    method: 'get',
    params: query
  })
}

// 查询用户课程详细
export function getUser_curriculum(id) {
  return request({
    url: '/auto/user_curriculum/' + id,
    method: 'get'
  })
}

// 新增用户课程
export function addUser_curriculum(data) {
  return request({
    url: '/auto/user_curriculum',
    method: 'post',
    data: data
  })
}

// 修改用户课程
export function updateUser_curriculum(data) {
  return request({
    url: '/auto/user_curriculum',
    method: 'put',
    data: data
  })
}

// 删除用户课程
export function delUser_curriculum(id) {
  return request({
    url: '/auto/user_curriculum/' + id,
    method: 'delete'
  })
}

// 导出用户课程
export function exportUser_curriculum(query) {
  return request({
    url: '/auto/user_curriculum/export',
    method: 'get',
    params: query
  })
}